// 用户管理
import userStatistics from './components/userManage/userStatistics.vue'
import userList from './components/userManage/userList.vue'

// 广告管理
import adOrdinary from './components/adManage/adOrdinary.vue'
import adOwner from './components/adManage/adOwner.vue'

//红包管理
import hbManage from './components/hbManage/hbManage.vue'

//商家管理
import sellerManage from './components/sellerManage/sellerManage.vue'

//审核
import verify from './components/verify/verify.vue'

//系统奖励
import rewardManage from './components/systemReward/systemReward.vue'

//设置更多
import accountManage from './components/set/accountManage.vue'
import cashRule from './components/set/cashRule.vue'
import channelManage from './components/set/channelManage.vue'
import complain from './components/set/complain.vue'
import dataManage from './components/set/dataManage.vue'
import documentManage from './components/set/documentManage.vue'
import exchangeCode from './components/set/exchangeCode.vue'
import feedbackManage from './components/set/feedbackManage.vue'
import indexSet from './components/set/indexSet.vue'
import levelManage from './components/set/levelManage.vue'
import cooperationManage from './components/set/cooperationManage.vue'
import systemMsg from './components/set/systemMsg.vue'
import operationRecord from './components/set/operationRecord.vue'

import Login from './components/login.vue'
import Home from './components/app.vue'

export default [
    {
        path: '/',
        redirect: '/Login'
    },
    {
        path: '/Login',
        component: function(resolve){
                    require(['./components/login.vue'],resolve)
                }
    },
    {
        path: '/Home',
        redirect: '/Home/userStatistics'
    },
    {
        path: '/Home',
        component: function(resolve){
                    require(['./components/app.vue'],resolve)
                },
        children: [
            {
                path: 'userStatistics',
                component: function(resolve){
                    require(['./components/userManage/userStatistics.vue'],resolve)
                }
            },
            {
                path: 'userList',
                component: function(resolve){
                    require(['./components/userManage/userList.vue'],resolve)
                }
            },
            {
                path: 'adOrdinary',
                component: function(resolve){
                    require(['./components/adManage/adOrdinary.vue'],resolve)
                }
            },
            {
                path: 'adOwner',
               component: function(resolve){
                    require(['./components/adManage/adOwner.vue'],resolve)
                }
            },
            {
                path: 'hbManage',
                component: function(resolve){
                    require(['./components/hbManage/hbManage.vue'],resolve)
                }
            },
            {
                path: 'sellerManage',
                component: function(resolve){
                    require(['./components/sellerManage/sellerManage.vue'],resolve)
                }
            },
            {
                path: 'verify',
                component: function(resolve){
                    require(['./components/verify/verify.vue'],resolve)
                }
            },
            {
                path: 'rewardManage',
               component: function(resolve){
                    require(['./components/systemReward/systemReward.vue'],resolve)
                }
            },
            {
                path: 'accountManage',
                component: function(resolve){
                    require(['./components/set/accountManage.vue'],resolve)
                }
            },
            {
                path: 'cashRule',
                component: function(resolve){
                    require(['./components/set/cashRule.vue'],resolve)
                }
            },
            {
                path: 'complain',
                component: function(resolve){
                    require(['./components/set/complain.vue'],resolve)
                }
            },
            {
                path: 'channelManage',
                component: function(resolve){
                    require(['./components/set/channelManage.vue'],resolve)
                }
            },
            {
                path: 'dataManage',
                component: function(resolve){
                    require(['./components/set/dataManage.vue'],resolve)
                }
            },
            {
                path: 'documentManage',
                component: function(resolve){
                    require(['./components/set/documentManage.vue'],resolve)
                }
            },
            {
                path: 'exchangeCode',
                component: function(resolve){
                    require(['./components/set/exchangeCode.vue'],resolve)
                }
            },
            {
                path: 'feedbackManage',
                component: function(resolve){
                    require(['./components/set/feedbackManage.vue'],resolve)
                }
            },
            {
                path: 'indexSet',
                component: function(resolve){
                    require(['./components/set/indexSet.vue'],resolve)
                }
            },
            {
                path: 'levelManage',
                component: function(resolve){
                    require(['./components/set/levelManage.vue'],resolve)
                }
            },
            {
                path: 'cooperationManage',
               component: function(resolve){
                    require(['./components/set/cooperationManage.vue'],resolve)
                }
            },
            {
                path: 'systemMsg',
                component: function(resolve){
                    require(['./components/set/systemMsg.vue'],resolve)
                }
            },
            {
                path: 'operationRecord',
                component: function(resolve){
                    require(['./components/set/operationRecord.vue'],resolve)
                }
            },
        ]
  }
]
